/*
 * Copyright (c) 2018. J4dream Created.
 */

package com.j4dream.property.javabasic.designpattern.singleton;

// 静态内部类方法。

public class Singleton5 {
    static class SingletonHolder {
        static Singleton5 instance = new Singleton5();
    }

    public static Singleton5 getInstance(){
        return SingletonHolder.instance;
    }
}